package com.xuexi.bootstrap.service;

import javax.mail.MessagingException;
import java.io.File;

/**
 * 邮件service
 */
public interface MailService {

    /**
     * 发送文本邮件
     * @param to      收件邮箱
     * @param subject 邮件主题
     * @param html    邮件内容(分为普通内容与html)
     */
    void sendAttachFileMail(String from, String to, File file) throws MessagingException;
    void sendSimpleMail(String from,String to,String cc,String bcc);
    void sendImgResMail(String from,String to,File file) throws MessagingException;
}